package com.orange.jfreechart.demo;

import java.awt.Font;

public enum FontEnum {

    YA_HEI("YaHei", "微软雅黑", new Font("微软雅黑", 0, 12)),

    SONG("Song", "宋体", new Font("宋体", 0, 12));

    private String name;

    private String caption;

    private Font font;

    public String getName() {
        return name;
    }

    public String getCaption() {
        return caption;
    }

    public Font getFont() {
        return font;
    }

    FontEnum(String name, String caption, Font font) {
        this.name = name;
        this.caption = caption;
        this.font = font;
    }
}
